<%-- 
    Document   : onecustomer
    Created on : 12 Νοε 2011, 7:41:19 μμ
    Author     : patros
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <f:loadBundle basename="cityblog" var="msg"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>Show/Create Articles</title>
        </head>
        <body>
        <h:form id="customerForm" prependId="false">
            <h:messages/>
            <fieldset>
                <h:outputLabel for="custID" value="#{msg.articleId}:"/>
                <h:outputText value="#{Articles.selectedArticle.id}" id="custID"/>
                <hr>
                <h:outputLabel for="surname" value="#{msg.articleStatus}(*):"/>
                <h:inputText value="#{Articles.selectedArticles.status}" id="status" required="true"/>
                <h:message for="surname"/>
                <hr>
                <h:outputLabel for="name" value="#{msg.articleDate}:"/>
                <h:inputText value="#{Articles.selectedArticles.date}" id="date"/>
                <h:message for="name"/>
                
                 <h:outputLabel for="surname" value="#{msg.articleTitle}(*):"/>
                <h:inputText value="#{Articles.selectedArticles.title}" id="title" required="true"/>
                <h:message for="surname"/>
                <hr>
                
                 <h:outputLabel for="surname" value="#{msg.articleTag}(*):"/>
                <h:inputText value="#{Articles.selectedArticles.tag}" id="tag" required="true"/>
                <h:message for="surname"/>
                <hr>
                
                 <h:outputLabel for="surname" value="#{msg.articleBody}(*):"/>
                <h:inputText value="#{Articles.selectedArticles.articleBody}" id="articleBody" required="true"/>
                <h:message for="surname"/>
                <hr>
                
                
                
            </fieldset>

            <br>
            <h:commandButton value="#{msg.update}" action="#{Articles.persistSelectedArticle}"></h:commandButton>
            <h:commandButton value="#{msg.back}" immediate="true" action="showList"></h:commandButton>
            </body>
        </h:form>
    </html>
</f:view>
